@import '~antd/es/style/variable.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

/**************************** 自定义样式 ****************************/
.ant-btn {
  border-radius: 4px;
}

.ant-pro-table {
  .ant-pro-table-search {
    // border-top: 1px solid var(--ant-primary-color);
  }

  /* ProTable工具栏靠左 */
  .ant-pro-table-list-toolbar-left {
    max-width: 0;
  }
  .ant-pro-table-list-toolbar-right {
    justify-content: space-between;
    width: 100%;
  }
}

/* 对话框标题栏背景色、圆角调整 */
.ant-modal-content {
  border-radius: 9px !important;

  > button {
    .ant-modal-close-x {
      color: rgba(255, 255, 255, 0.4);

      :hover {
        color: #fff;
      }
    }
  }

  .ant-modal-header {
    background-color: var(--ant-primary-color);
    border-radius: 8px 8px 0 0;

    .ant-modal-title {
      color: #fff;
    }
  }
}
